package com.test.p20mediator.example01;

public class Market implements Department {

    private Mediator mediator;

    public Market(Mediator mediator) {
        super();
        this.mediator = mediator;
        mediator.register("market",this);
    }

    @Override
    public void selfAction() {
        System.out.println("market");
    }

    @Override
    public void outAction() {
        System.out.println("汇报工作，市场情况");
        mediator.command("finacial");
    }
}
